package com.terracloud.server.common.data;

import com.terracloud.server.common.data.id.TenantGroupId;
import com.terracloud.server.common.data.id.TenantId;
import com.terracloud.server.common.data.validation.Length;
import com.terracloud.server.common.data.validation.NoXss;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

/**
 *
 * @author chenhainan
 * @since 2025/10/11
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class TenantGroup extends BaseData<TenantGroupId> implements HasTenantId, HasName {

    private TenantId tenantId;

    @NoXss
    @Length(fieldName = "name")
    private String name;

    private String description;

    private Long tenantCount;

    private List<Tenant> tenants;

    public TenantGroup() {
    }
}
